package com.qdu.service.impl;

import com.qdu.dao.LogDao;
import com.qdu.dao.impl.LogDaoImpl;
import com.qdu.entity.Log;
import com.qdu.service.LogService;
import java.util.List;

/**
 *
 * @author Lenovo
 */
public class LogServiceImpl implements LogService{

    LogDaoImpl logdaoimpl=new LogDaoImpl();
    @Override
    public List<Log> getAllLog() {
        return logdaoimpl.selectAll();
    }

    @Override
    public Log getOneLogById(String id) {
        return logdaoimpl.selectOneById(id);
    }

    @Override
    public int deleteThisLog(String id) {
         return logdaoimpl.deleteLogById(id);
    }

    @Override
    public int addNewLog(Log log) {
         return logdaoimpl.addLog(log);
    }

    @Override
    public int modifyLog(int num) {
         return logdaoimpl.modifyLogAgree(num);
    }

    @Override
    public List<Log> getThreeLog() {
        return logdaoimpl.selectThree();
    }
    
}
